package oldVersion.server;

/**
 *@author Adam
 */

import java.rmi.RemoteException;

/**
 *@author Adam
 */

public class Server{
	
	static int port  = 0;

	public Server(){
	}

	public static void main(String[] args){
		try{
			RMIServerImpl rmi = new RMIServerImpl("server");
			rmi.begin();
			port = rmi.getPort();
		} catch (RemoteException re){
			System.out.println("caught a remote exception");
		}
		BonjourService ss = new BonjourService();
		ss.registerService();
		


	}
}
